# -*- coding: utf-8 -*-
"""
 @Time    : 2021/3/11 下午5:52
 @Author  : tgy
 
"""
from collections import namedtuple


def test01():
    ...
    person = namedtuple('Person', ('name', 'age'))
    person.age = 10
    person.name = '张三'
    print(person.name)
    print(person.age)
    import math
    print(math.pi)
    import random
    print(random.randint(0, 10))

    se = slice(1, 2)
    name = 'zhangsan'
    print(name[se])
    help(slice.mro);
    content = '''asdasdk
    asdasd
    asdasd
    '''
    print('----------')
    print(content)
    print('----------')


def test02():
    ...
    print(len(u'哦怕是的'.encode('utf-8')))
    print(u'xx' + u'新')


if __name__ == '__main__':
    test02()
